package com.yfp.goods.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yfp.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品类型表(GoodsType)实体类
 *
 * 
 * @since 2023-12-20 22:23:09
 */
@Schema(title = "商品类型")
@Data
public class GoodsType extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 835997937771290392L;
    /**
     * 商品分类id
     */
    @Schema(title = "商品分类id")
    @NotNull(message = "商品分类id不能为空")
    private String goodsTypeId;
    /**
     * 商品分类名称
     */
    @Schema(title = "商品分类名称")
    @NotNull(message = "商品分类名称不能为空")
    private String goodsTypeName;
    /**
     * 启用1/禁用0
     */
    @Schema(title = "启用1/禁用0")
    private Integer enable;
    /**
     * 创建时间
     */
    @Schema(title = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 更新时间
     */
    @Schema(title = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 是否删除
     */
    @Schema(title = "是否删除")
    private Boolean isDelete;
    @Schema(title = "操作人")
    private String updateBy;

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "城市名称")
    private String cityName;

    /**
     * 配菜分类名称
     */
    private String typeName;

    public Boolean getDelete() {
        return isDelete;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public String getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(String goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public String getGoodsTypeName() {
        return goodsTypeName;
    }

    public void setGoodsTypeName(String goodsTypeName) {
        this.goodsTypeName = goodsTypeName;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

}

